/**
 * Created with IntelliJ IDEA.
 * Description:
 */
public class Test2 {
    public static void main(String[] args) {
        double h = 10;
        double s = 10;
        for (int i = 1; i < 10; i++) {
            s += h;
            h /= 2;
        }
        System.out.println("经过路径长度：" + s + "m");
    }
}
